package com.hxzy.shop.controller;


import com.github.pagehelper.PageInfo;
import com.hxzy.shop.dto.req.LogisticsCompanyReq;
import com.hxzy.shop.entity.LogisticsCompanyInformation;
import com.hxzy.shop.service.ExpressLogisticsService;
import com.hxzy.shop.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.jws.WebParam;

/**
 * @Description 快递100物流查询
 * @Author gityyge
 * @Data 2022/5/30 10:23
 */
@RestController
@Api(tags = "快递100物流查询")
@RequestMapping("/expressLogistics")
public class ExpressLogisticsController {
    @Resource
    private ExpressLogisticsService expressLogisticsService;

    @ApiOperation(value = "查询支持的物流公司信息")
    @PostMapping(value = "/getList")
    public Result<PageInfo<LogisticsCompanyInformation>> getList(@RequestBody LogisticsCompanyReq req) {
        PageInfo<LogisticsCompanyInformation> list = expressLogisticsService.getList(req);
        return Result.success(list);
    }

    @ApiOperation(value = "查询物流")
    @GetMapping(value = "/get")
    public Result<PageInfo<LogisticsCompanyInformation>> get(@RequestParam("orderId") String orderId){
        //expressLogisticsService.get
        return Result.success();
    }


}
